/**
 * Copyright(c) by JNet Smartware Group.
 * All rights reserved. Not distribution or redistribution without
 * any permission of JNet Smartware Group.
 * 
 * @author thuc
 * 2010/03/15
 */
package vn.smartware.co.java.net.commons;

/**
 * value property class<br>
 */
public class ValueProperty extends Property {

	/**
	 * field value<br>
	 */
	private Object value;

	/**
	 * @param propName
	 * @param value
	 * @param notCopyIfNull
	 */
	public ValueProperty(String propName, Object value, boolean notCopyIfNull) {
		super(propName, notCopyIfNull);
		this.value = value;
	}

	/**
	 * get value<br>
	 * 
	 * @return Object
	 */
	public Object getValue() {
		return this.value;
	}

	/**
	 * set value<br>
	 * 
	 * @param value
	 */
	public void setValue(Object value) {
		this.value = value;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see jp.co.nikkocompany.air.util.Property#isValueProperty()
	 */
	/**
	 * is value property<br>
	 * 
	 * @return boolean
	 */
	public boolean isValueProperty() {
		return true;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see jp.co.nikkocompany.air.util.Property#isNameProperty()
	 */
	/**
	 * is name property<br>
	 * 
	 * @return boolean
	 */
	public boolean isNameProperty() {
		return false;
	}

}
